package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.gusha.model.SysOrder;
import com.gusha.model.User;

@Repository
public interface SysOrderDao extends JpaRepository<SysOrder, BigInteger>,JpaSpecificationExecutor<SysOrder>{

	List<SysOrder> findAllByUserId(User user);

	//List<SysOrder> findAllByUserIdAndState(User u);

	List<SysOrder> findAllByUserIdAndState(User u, BigInteger bigInteger);

}
